<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>会员信息</title>
		<link rel="stylesheet" href="/public/global/layui/css/layui.css">
	  	<link rel="stylesheet" type="text/css" href="/public/user/style.css"/>
	  	<script type="text/javascript" src="/public/global/jquery/1.11.1/jquery.min.js" ></script>
	  	<script type="text/javascript" src="/public/global/layui/layui.js"></script>
	</head>
	<style>
		.bind{
			position: absolute;
			right: 0;
			top: 40%;
			margin-right: 10px;
		}
		.bind a{
			background-color: #ff5722;
			color: #FFF;
			padding: 5px 10px;
			border-radius: 5px;
			font-weight: bold;
			font-size: 14px;
		}
		.bind a:hover{
			background-color: #F43838;
		}
		red{
			color: red;
			margin: 0 10px;
		}
	</style>
	<body>
		<div class="body">
			<div class="default_user">
				<div class="default_user_logo">
					<php>
						$thumb=C('MYDB.thumb') ? get_img_url(C('MYDB.thumb')) : "/public/global/images/face.jpg"
					</php>
					<img src="{{$thumb}}" />
				</div>
				<div class="default_user_info">
					<div>
						{{C('MYDB.username')}}
						<span>uid:{{C('MYDB.uid')}}</span>
					</div>
					<div>
						<span>email:{{C('MYDB.email')}}></span>
						<span>注册时间:{{date('Y-m-d H:i:s',C('MYDB.regtime'))}}</span>
						<span>积分:<red>{{C('MYDB.integral')}}</red>个</span>
					</div>
					<div>
						<span>上次登录时间:{{date('Y-m-d H:i:s',C('MYDB.lasttime'))}}</span>
						<span>上次登录IP:{{C('MYDB.lastip')}}</span>
					</div>
					
				</div>
				<if condition="$more_login_list">
				<div class="bind">
					<foreach array="more_login_list">
						<if condition="!C('MYDB.'.$row['match_field'])">
					
							<a href="/user/bind/go_to/name/{{$key}} ?>">绑定{{$row['name']}}</a>
						</if>
					</foreach>
				</div>
				</if>
			</div>
			<div class="default_num">
				<dt>您共发布过：</dt>
				<dl>
					<dd>总文章 ：<span class="green">{{$Article_NUM}}</span> 篇</dd>
					<dd>未通过审核的 ：<span class="green">{{$Article_NUM_Noyz}}</span> 篇</dd>
				</dl>
				<dl>
					<dd>总评论： <span class="green">{{$comment_NUM}}</span> 条</dd>
					<dd>未通过审核的 ：<span class="green">{{$comment_NUM_Noyz}}</span> 篇</dd>
				</dl>
			</div>
			<div class="default_news">
				<div class="">
					<dd>
						发布的文章
					</dd>
					<ul>
						<foreach array="M($index['table'].'article','uid='.C('MYDB.uid'),'DESC','aid','10')" f="1">
							<li>
								<if condition="$row['state']">
									<span class="green">【已审】</span>
								<else>
									<span class="red">【待审】</span>
								</if>
								<a href="{{U(['aid'=>$row['aid'],'cid'=>$row['cid']],$module)}}" target="_blank">{{Get_word_strpos($row['title'],20)}}</a>
								<span style="float: right; color: #aaa; font-size: 12px;">{{date('Y-m-d H:i:s',$row['posttime'])}}</span>
							</li>
						</foreach>
						
					</ul>
				</div>
				<div>
					<dd>
						发布的评论
					</dd>
					<ul>
						<foreach array="M($index['table'].'comment','uid='.C('MYDB.uid'),'DESC','aid','10')" f="1">
							<li>
								<if condition="$row['state']">
									<span class="green">【已审】</span>
								<else>
									<span class="red">【待审】</span>
								</if>
								<a href="#" title="{{$row['content']}}" target="_blank">{{Get_word_strpos($row['content'],20)}}</a>
								<span style="float: right; color: #aaa; font-size: 12px;">{{date('Y-m-d H:i:s',$row['posttime'])}}</span>
							</li>
						</foreach>
					</ul>
				</div>
			</div>
		</div>
	</body>
</html>
